import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/Ajax",
    name: "Ajax",
    component: () => import(/* webpackChunkName: "Ajax" */ "@/views/Ajax.vue"),
  },
  {
    path: "/Form",
    name: "Form",
    component: () =>
      import(/* webpackChunkName: "Form" */ "@/views/FormGenerator/Form.vue"),
  },
  {
    path: "/Code",
    name: "Code",
    props: true,
    component: () =>
      import(/* webpackChunkName: "Code" */ "@/views/FormGenerator/Code.vue"),
  },
  {
    path: "/test",
    name: "test",
    component: () => import(/* webpackChunkName: "test" */ "@/views/test.vue"),
  },
  
];

const router = new VueRouter({
  routes,
});

export default router;
